﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WorkFlow.Engine.NSPermission;

namespace WorkFlow.Engine.NSUtilities
{
    public class ListController
    {
        public List<WfOrgStruct> AppendList(List<WfOrgStruct> orginList, List<WfOrgStruct> targetList)
        {
            if (orginList == null || targetList == null) return null;
            int count = orginList.Count;
            for (int i = 0; i < count; i++)
            {
                if (!targetList.Contains(orginList[i])) targetList.Add(orginList[i]);
            }
            return targetList;
        }
    }
}